[index]

CharToNum Function

Syntax

the charToNum of <character> or
charToNum(<char>)

Description

The charToNum function returns the equivalent numerical (ASCII) value of a character.

Notes

This function is useful for determining the case (upper or lower) of a character: uppercase letters have ASCII values from 65 to 90; lowercase letters have ASCII values from 97 to 122.

Examples

Create a field and name it "text". Now create a button, name it "CharToNum", and add the following handler to the button's script: on mouseUp put the CharToNum of field "text" end mouseUp Type a letter, number, or punctuation mark in the field, then click on the button. The equivalent ASCII value appears in the Message Box.
This text has been mechanically extracted from the Oracle Media Objects 1.0.4.9 MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.